package com.estylesoft.pshevch.tests;

import org.testng.annotations.*;
import static org.junit.Assert.*;

public class DeleteMovieTestPack extends com.estylesoft.pshevch.tests.TestBase {
    @Test
    public void deleteAFilm() throws Exception {

        appManager.getMovieHelper().removeRandomMovie();

        String alertMessage = appManager.getMovieHelper().closeAlertAndGetItsText();

        assertTrue(alertMessage.matches("^Are you sure you want to remove this[\\s\\S]$"));

        appManager.getNavigationHelper().homePage();

    }
}